body {
  width: 400px;
  min-height: 400px;
  margin: 0;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8f9fa;
}

.container {
  max-width: 100%;
}

h2 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
}

h3 {
  color: #34495e;
  margin-bottom: 10px;
  font-size: 16px;
}

.video-list-container,
.recording-container {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#video-list {
  margin-bottom: 15px;
  max-height: 200px;
  overflow-y: auto;
}

.video-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.video-item.selected-video {
  background: #e3f2fd;
  border-color: #2196f3;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.video-info {
  flex: 1;
  margin-right: 10px;
}

.video-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #2c3e50;
  font-size: 14px;
}

.video-url {
  font-size: 11px;
  color: #6c757d;
  margin-bottom: 3px;
  word-break: break-all;
}

.video-status {
  font-size: 11px;
  color: #6c757d;
  background-color: #e9ecef;
  padding: 3px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 3px;
}

.video-source {
  font-size: 10px;
  color: #495057;
  background-color: #f8f9fa;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid #dee2e6;
}

.video-badge {
  background-color: #28a745;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.video-selector {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.video-selector label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.video-dropdown {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
  color: #495057;
  cursor: pointer;
}

.video-dropdown:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.video-dropdown option {
  padding: 8px;
}

.recording-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.primary-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.primary-btn:hover {
  background-color: #0056b3;
}

.page-refresh-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 8px;
  transition: background-color 0.2s ease;
}

.page-refresh-btn:hover {
  background-color: #218838;
}

.page-refresh-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.record-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.record-btn:hover {
  background-color: #c82333;
}

.record-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.stop-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.stop-btn:hover {
  background-color: #218838;
}

.stop-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.screenshot-btn {
  background-color: #ffc107;
  color: #212529;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.screenshot-btn:hover {
  background-color: #e0a800;
}

.status-info {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

#status {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
  min-height: 20px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  margin-top: 15px;
}

p {
  text-align: center;
  color: #6c757d;
  margin: 10px 0;
}

.recording-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #dc3545;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
  